import Vue from 'vue';
import App from './App'; // 弹出框
import store from "./store";
Vue.prototype.$store = store;
Vue.config.productionTip = false;
import fun from './util/fun.js';
import env from "./util/env.js";
let baseUrl;
import TabBar from './components/TabBar/TabBar.vue';
import PayBoard from './components/xiaojia-keyBoard/xiaojia-keyBoard';
import {
	i18n,
	locale,
	lang
} from '@/common/locales/index.js';

Vue.component('TabBar', TabBar);
Vue.component('PayBoard', PayBoard);
if (process.env.NODE_ENV === 'development') {
	// 线上环境
	baseUrl = env.dev.baseUrl;
} else {
	// 开发环境
	baseUrl = env.prod.baseUrl;
	console.log = function() {}
} // 全局组件
import uView from "@/uni_modules/uview-ui/index.js";
Vue.use(uView);
Vue.prototype.$fun = fun;
Vue.prototype.$baseUrl = baseUrl;
Vue.prototype._i18n = i18n
App.mpType = 'app';
const app = new Vue({
	store,
	...App
});
app.$mount();